package cn.stylefeng.guns.sys.modular.system.db2.service;

import cn.stylefeng.guns.sys.modular.system.db2.entity.Biz;
import cn.stylefeng.guns.sys.modular.system.db2.mapper.BizMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.sql.Timestamp;

/**
 * <p>
 * 管理员表 服务实现类
 * </p>
 *
 * @author stylefeng
 * @since 2018-12-07
 */
@Service
public class BizService extends ServiceImpl<BizMapper, Biz> {
    /**
     * 根据门店号获取日销售额
     */
    public String lastMoneyByShopCode(String shopCode, Timestamp yesterdayTime, Timestamp todayTime){
        return baseMapper.lastMoneyByShopCode(shopCode,yesterdayTime,todayTime);
    }

    public String origMoneyByShopCode(String shopCode, Timestamp yesterdayTime, Timestamp todayTime){
        return baseMapper.origMoneyByShopCode(shopCode,yesterdayTime,todayTime);
    }
    /**
     * 根据门店号获取日纯收金额
     */
    public String incomeMoneyByShopCode(String shopCode, Timestamp yesterdayTime, Timestamp todayTime){
        return baseMapper.incomeMoneyByShopCode(shopCode,yesterdayTime,todayTime);
    }

}
